export default {
    state: {
        currentMenu: null,
        menu: [],
        isCollapse: false
    },
    mutations: {
        selectMenu(state, val) {
            val.name === "home" ?
                (state.currentMenu = null) :
                (state.currentMenu = val);
        },
        collapseMenu(state) {
            state.isCollapse = !state.isCollapse;
        }
    },
    actions: {}
}